import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: "/",
        redirect: "/uavtask",
    },
    {
        path: "/uavtask",
        name: "uavTask",
        component: () => import("@/views/UavTask.vue"),
    },
    {
        path: "/uavtaskinfo",
        name: "uavTaskInfo",
        component: () => import("@/views/UavTaskInfo.vue"),
    },
    {
        path: "/routesimulate",
        name: "routeSimulate",
        component: () => import("@/views/RouteSimulate.vue"),
    },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;